package com.ysy.logistics.service.supplier;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ysy.common.resp.ResultData;
import com.ysy.logistics.entities.echarts.Series;
import com.ysy.logistics.entities.supplier.SupOrder;
import com.ysy.logistics.entities.supplier.dto.SupOrderDto;
import com.ysy.logistics.entities.supplier.dto.SupOrderGoodsDto;
import com.ysy.logistics.util.PageInfo;

import java.util.List;

/**
 * @ClassDescription:
 * @Author:姚斯羽
 * @Create:2025/3/25 14:57
 **/
public interface SupOrderService extends IService<SupOrder> {
    ResultData saveSupOrderDto(SupOrderDto supOrderDto);

    Page<SupOrder> listByPage(PageInfo<SupOrder> pageInfo);

    List<SupOrderGoodsDto> getGoodsListByOrderId(String id);

    ResultData backOrder(String id);

    ResultData flushOrderStatus();

    /**
     * 按日期统计订单量
     * @param dateArray
     * @return
     */
    Series getTotal(List<String> dateArray);
}
